package com.beiben.workflow.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 审核日志对象 wf_check_log
 *
 * @author 熊国强
 * @date 2020-12-17
 */
public class WfCheckLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 审核日志表
     */
    private Long logId;

    /**
     * 申请ID
     */
    @Excel(name = "申请ID")
    private Long applyId;

    /**
     * 审核ID
     */
    @Excel(name = "审核ID")
    private Long checkId;

    /**
     * 审核意见
     */
    @Excel(name = "审核意见")
    private String content;

    /**
     * 审核状态（0：提交申请，1：审核通过，2：打回，3：拒绝）
     */
    @Excel(name = "审核状态", readConverterExp = "0=：提交申请，1：审核通过，2：打回，3：拒绝")
    private String state;

    /**
     * 记录类型（0：申请，1：审核）
     */
    @Excel(name = "记录类型", readConverterExp = "0=：申请，1：审核")
    private String type;

    private Long checkUserId;

    public Long getCheckUserId() {
        return checkUserId;
    }

    public void setCheckUserId(Long checkUserId) {
        this.checkUserId = checkUserId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public Long getLogId() {
        return logId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setCheckId(Long checkId) {
        this.checkId = checkId;
    }

    public Long getCheckId() {
        return checkId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("logId", getLogId())
                .append("applyId", getApplyId())
                .append("checkId", getCheckId())
                .append("content", getContent())
                .append("state", getState())
                .append("type", getType())
                .append("createTime", getCreateTime())
                .toString();
    }

}
